package ferp.center.network;

import ferp.core.Version;
import ferp.core.game.Settings;
import ferp.core.player.Profile;

/**
 * User: igorgok
 * Date: 05/01/2015 10:00
 */
public class Request
{
  public Request(String device, Version version, Profile profile)
  {
    this.device = device;
    this.version = version;
    this.profile = profile.centerId;
    this.locale = profile.settings.locale;
    this.configuration = profile.getConfiguration();
  }

  public String getDeviceID() {return device;}
  public long getProfileID() {return profile;}
  public int getVersionCode() {return version == null ? 0 : version.code;}
  public Settings.Locale getLocale() {return locale;}
  public String getConfiguration() {return configuration;}

  // device ID
  private String device;
  // version
  private Version version;
  // profile ID
  private long profile;
  // locale
  private Settings.Locale locale;
  // configuration
  private String configuration;

}
